<?php


namespace App\Models;


class ImOperationLogs extends BaseModel
{
    //后台操作日志表
    protected $table = 'im_operation_logs';
    const CREATE = 1;//创建
    const UPDATE = 2;//更新
    const DELETE = 3;//删除

    //操作者信息
    public function operator()
    {
        return $this->belongsTo(ImAccount::class, 'operator',
            'id')->select(['id', 'username', 'phone']);
    }
}
